home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 45
/
Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso
/
Aminet
/
game
/
role
/
ldmud-3.2-bin.lha
/
mud
/
doc
/
efun
/
to_string
< prev
next >
Wrap
Text File
|
2001-04-06
|
728b
|
23 lines
SYNOPSIS
string to_string(mixed)
(string)<value>
DESCRIPTION
The argument is converted to a string. Works with int, float,
object, arrays, symbols, strings, and closures.
Converts closures into an appropriate name (this has mostly
debugging purposes).
CAVEAT: Arrays are considered exploded strings, ie. arrays of
char codes, and are 'imploded' up to the first 0 or the first
non-number entry, whatever comes first. That means that
to_string( ({ 33, 34 }) ) will return "12" and not "({ 33, 34 })".
HISTORY
LDMud 3.2.8 adds lambda closures to the accepted data types.
SEE ALSO
to_array(E), to_int(E), to_object(E), sprintf(E)